function locationAreaTypeFilter(areaType, areaTypeList) {
  const index = areaTypeList.findIndex(res => res.value === areaType)
  return index >= 0 ? areaTypeList[index].label : ''
}

function purchaseOrderStateFilter(stateType, stateList) {
  const index = stateList.findIndex(res => res.value === stateType)
  return index >= 0 ? stateList[index].label : ''
}

export default {
  locationAreaTypeFilter,
  purchaseOrderStateFilter
}
